#pragma once
#include <Windows.h>
class XHButton
{
private:
	HWND m_hWnd;
	HWND m_hParent;
	TCHAR m_szWindowText[64];
	HDC m_dc;
	HBRUSH m_hRedBrush;
	HBRUSH m_hGreenBrush;
	RECT m_rt;
public:
	COLORREF m_color;
	XHButton();

	XHButton(HWND hwnd,HWND hParent);
	void SetHWND(HWND hwnd,HWND hParent);
	HWND GetHWnd();
	HWND GetHParentWnd();
	TCHAR* GetWindowText(TCHAR *buf);
	void  SetWindowText(TCHAR *szWindowText);
	void  SetBkColor(COLORREF color);

	~XHButton(void);
};
